package com.open.capacity.reimburse.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import java.util.Date;


@Data
public class CarExcelModel implements IExcelDataModel, IExcelModel {
    //行号
    private Integer rowNum;
    //错误消息
    private String errorMsg;

    @Excel(name = "车牌号*")
    private String licensePlateNumber;

    @Excel(name = "品牌")
    private String brand;

    @Excel(name = "型号")
    private String serial;

    @Excel(name = "车辆类型")
    private String type;

    @Excel(name = "颜色")
    private String color;

    @Excel(name = "荷载")
    private Float weightLoad;

    @Excel(name = "座位")
    private Integer seat;

    @Excel(name = "油耗")
    private Float oilwear;

    @Excel(name = "里程")
    private Float mileage;

    @Excel(name = "发动机号")
    private String engineNumber;

    @Excel(name = "车架号")
    private String vinNumber;

    @Excel(name = "驾驶员")
    private String driverName;
    private String driverId;

    @Excel(name = "供应商")
    private String supplier;

    @Excel(name = "购入日期", format = "yyyy-MM-dd")
    private Date buyDate;

    private String companyId;

    @Excel(name = "所属机构")
    private String companyName;

    private String departmentId;

    @Excel(name = "所属部门")
    private String departmentName;

    private String userId;

    @Excel(name = "所属车主")
    private String userName;

    @Excel(name = "状态", replace = {"可用_1", "外出_2"})
    private Integer status;

}
